package com.forcht.server.handler;

import com.forcht.common.domain.*;
import com.forcht.common.enumeration.MessageType;
import com.forcht.common.enumeration.ResponseCode;
import com.forcht.common.enumeration.ResponseType;
import com.forcht.common.util.ProtostuffUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.io.IOException;
import java.nio.ByteBuffer;
import java.nio.channels.SelectionKey;
import java.nio.channels.SocketChannel;
import java.util.List;

/**
 * Created by forcht on 2018/4/11.
 * 服务器消息处理器
 */
public abstract class MessageHandler {
    /**
     * 服务器处理请求
     * @param message
     */
    public abstract void handle(Message message,SelectionKey key);

}
